/*
 * @Descripttion: 行程单信息
 * @version:
 * @Author: 许国辉
 * @Date: 2022-10-26 08:14:02
 * @LastEditors: 许国辉
 * @LastEditTime: 2023-09-15 10:08:20
 */
import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { RoleEnum } from '/@/enums/roleEnum';

const travelItinerary: AppRouteModule = {
  path: '/travelItinerary',
  name: 'TravelItinerary',
  component: LAYOUT,
  redirect: '/travelItinerary/index',
  meta: {
    orderNo: 12,
    icon: 'ion:android-time',
    title: '行程数据管理',
  },
  children: [
    {
      path: 'examineApprove',
      name: 'examineApproveInfo',
      meta: {
        title: '审批单管理',
        ignoreKeepAlive: true,
      },
      component: () => import('/@/views/travelItinerary/examineApprove/examineApproveInfo.vue'),
    },
    {
      path: 'air',
      name: 'airItinerary',
      meta: {
        title: '机票行程',
        ignoreKeepAlive: true,
        roles: [RoleEnum.ROOT],
      },
      component: () => import('/@/views/travelItinerary/air/airItinerary.vue'),
    },
    {
      path: 'train',
      name: 'trainItinerary',
      meta: {
        title: '火车行程',
        ignoreKeepAlive: true,
        roles: [RoleEnum.ROOT],
      },
      component: () => import('/@/views/travelItinerary/train/trainItinerary.vue'),
    },
    {
      path: 'hotel',
      name: 'hotelItinerary',
      meta: {
        title: '酒店行程',
        ignoreKeepAlive: true,
        roles: [RoleEnum.ROOT],
      },
      component: () => import('/@/views/travelItinerary/hotel/hotelItinerary.vue'),
    },
    {
      path: 'tailored',
      name: 'tailoredItinerary',
      meta: {
        title: '专车行程',
        ignoreKeepAlive: true,
        roles: [RoleEnum.ROOT],
      },
      component: () => import('/@/views/travelItinerary/car/carItinerary.vue'),
    },
  ],
};

export default travelItinerary;
